<html>
<head>
    <title>XBRLAPI.ORG XBRL Data Loading Example</title>
    <link rel="stylesheet" href="/css/styles.css" type="text/css"/>
    <script type="text/javascript">
        var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
        document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
        try {
            var pageTracker = _gat._getTracker("UA-11401995-1");
            pageTracker._setDomainName("none");
            pageTracker._setAllowLinker(true);
            pageTracker._trackPageview();
        } catch (err) {
        }</script>
</head>


<body>

<div class="logo_container">
	<span class="logo">
		<a class="title" href="/">XBRLAPI</a>
	</span>
	<span class="logo_subscript">
		<a class="title" href="http://en.wikipedia.org/wiki/Free_and_open_source_software">Free Open-Source Software</a>
	</span>
</div>

<div id="navcontainer">
    <form action="http://www.xbrlapi.org/search.html" id="cse-search-box">
        <div>
            <input type="hidden" name="cx" value="partner-pub-3957505011939955:jqid48zd81o"/>
            <input type="hidden" name="cof" value="FORID:10"/>
            <input type="hidden" name="ie" value="ISO-8859-1"/>
            <input type="text" name="q" size="31"/>
            <input type="submit" name="sa" value="Search"/>
        </div>
    </form>

    <script
            type="text/javascript"
            src="http://www.google.com/cse/brand?form=cse-search-box&amp;lang=en">
    </script>

    <ul id="navlist">
        <li><a href="/">Home</a></li>
        <li><a href="..">Examples</a></li>
    </ul>

    <script type="text/javascript"><!--
    google_ad_client = "pub-3957505011939955";
    /* XBRLAPI site */
    google_ad_slot = "4927123290";
    google_ad_width = 160;
    google_ad_height = 600;
    //-->
    </script>
    <script type="text/javascript"
            src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>

</div>

<div class="content">

    <h1>
        XBRL instance loading example.
    </h1>

    <h2>
        Author: Geoff Shuetrim (geoff at galexy.net)
    </h2>

    <h2>
        What is it?
    </h2>

    <p>
        This is a Java sample application to demonstrate loading data into the data store
        to facilitate XBRL operations using the XBRLAPI.
        It uses the Oracle Berkeley XML database module.
    </p>

    <h2>
        Where is it?
    </h2>

    <p>
        The home page for the XBRL API project can be found on the XBRLAPI
        project web site (http://www.xbrlapi.org/). There you also find
        information on how to download the latest release as well as all the other
        information you might need regarding this project.
    </p>

    <p>
        You can browse the <a
            href="http://xbrlapi.svn.sourceforge.net/viewvc/xbrlapi/trunk/module-examples/src/main/java/org/xbrlapi/data/bdbxml/examples/load/Load.java?view=log">source
        code in SVN</a>.
    </p>

    <h2>
        Requirements
    </h2>

    <ul>
        <li> A Java 1.5 or later compatible virtual machine for your operating system.</li>
        <li> Xerces 2.6.2 or later version jar file.</li>
        <li> Saxon 9.0 or later version jar file.</li>
        <li> Saxon DOM 9.0 or later version jar file.</li>
        <li> Saxon S9API 9.0 or later version jar file.</li>
        <li> Log4j 1.2.15 or later version jar file.</li>
        <li> XBRLAPI module-examples jar file.</li>
        <li> XBRLAPI module-utilities jar file.</li>
        <li> XBRLAPI module-xmlbase jar file.</li>
        <li> XBRLAPI module-xlink jar file.</li>
        <li> XBRLAPI module-xpointer jar file.</li>
        <li> XBRLAPI module-api jar file.</li>
        <li> XBRLAPI module-bdbxml jar file.</li>
    </ul>

    <p>
        You can download the required XBRLAPI JARs from
        <a href="http://sourceforge.net/project/showfiles.php?group_id=135539">Sourceforge</a>.
        You can get suggestions on necessary installation and configuration steps
        from <a href="/">http://www.xbrlapi.org/</a>.
    </p>

    <p>
        You can get the other jar files from <a
            href="http://xbrlapi.svn.sourceforge.net/viewvc/xbrlapi/trunk/java/lib/">the XBRLAPI SVN repository</a>.
    </p>

    <h2>
        Commandline Arguments:
    </h2>

    <h3>
        Java Virtual Machine Parameters:
    </h3>

<pre>  
  -Dlog4j.configuration=&lt;location of log4j.properties&gt;
  -classpath=&lt;java class paths&gt;
</pre>

    <p>
        An example logging configuration file is available for download from the
        <a href="http://xbrlapi.svn.sourceforge.net/viewvc/xbrlapi/trunk/conf/">Sourceforge SVN respository for
            XBRLAPI</a>.
        Download it to your file system and reference it as suggested above.
    </p>

    <h3>
        Program execution involves:
    </h3>

<pre>
  java org.xbrlapi.data.bdbxml.examples.load.Load &lt;OPTIONS&gt; &lt;URLS&gt;
</pre>

    <p>
        Where the URLs are the URLs of additional starting points for DTS discovery and
        the mandatory options are:
    </p>

    <ul>
        <li>-database [the directory containing the Oracle Berkeley XML database]</li>
        <li>-container [the name of the database container in the Oracle Berkeley XML database]</li>
        <li>-cache [the directory containing the document cache]</li>
    </ul>

    <p>
        The optional options are:
    </p>

    <ul>
        <li>-dbCacheSize [the number of megabytes of cache to use for the Oracle Berkeley XML database. Specify as an
            integer value.]
        </li>
    </ul>

    <p>
        Note that the cache size only has an impact if you are creating the database environment when setting
        up the container. If the environment already exists, this option is ignored.</p>

    <h1>
        SEC XBRL filings loading example.
    </h1>

    <h2>
        Author: Geoff Shuetrim (geoff at galexy.net)
    </h2>

    <h2>
        What is it?
    </h2>

    <p>
        This is a Java sample application to demonstrate loading large data volumes into the data store.
        It uses the SEC voluntary filing system for the example. The documents are identified by the
        <a href="http://www.sec.gov/Archives/edgar/xbrlrss.xml">SEC RSS feed
            http://www.sec.gov/Archives/edgar/xbrlrss.xml</a>.
    </p>

    <h2>
        Where is it?
    </h2>

    <p>
        The home page for the XBRL API project can be found on the XBRLAPI
        project web site (http://www.xbrlapi.org/). There you also find
        information on how to download the latest release as well as all the other
        information you might need regarding this project.
    </p>

    <p>
        You can browse the <a
            href="http://xbrlapi.svn.sourceforge.net/viewvc/xbrlapi/trunk/module-examples/src/main/java/org/xbrlapi/examples/loading/">source
        code in SVN</a>.
    </p>

    <h2>
        Requirements
    </h2>

    <ul>
        <li> A Java 1.5 or later compatible virtual machine for your operating system.</li>
        <li> Xerces 2.6.2 or later version jar file.</li>
        <li> Saxon 9.0 or later version jar file.</li>
        <li> Saxon DOM 9.0 or later version jar file.</li>
        <li> Saxon S9API 9.0 or later version jar file.</li>
        <li> Log4j 1.2.15 or later version jar file.</li>
        <li> XBRLAPI module-examples jar file.</li>
        <li> XBRLAPI module-utilities jar file.</li>
        <li> XBRLAPI module-xmlbase jar file.</li>
        <li> XBRLAPI module-xlink jar file.</li>
        <li> XBRLAPI module-xpointer jar file.</li>
        <li> XBRLAPI module-api jar file.</li>
        <li> XBRLAPI module-bdbxml jar file.</li>
    </ul>

    <p>
        You can download the required XBRLAPI JARs from
        <a href="http://sourceforge.net/project/showfiles.php?group_id=135539">Sourceforge</a>.
        You can get suggestions on necessary installation and configuration steps
        from <a href="/">http://www.xbrlapi.org/</a>.
    </p>

    <p>
        You can get the other jar files from <a
            href="http://xbrlapi.svn.sourceforge.net/viewvc/xbrlapi/trunk/java/lib/">the XBRLAPI SVN repository</a>.
    </p>

    <h2>
        Commandline Arguments:
    </h2>

    <h3>
        Java Virtual Machine Parameters:
    </h3>

<pre>  
  -Dlog4j.configuration=&lt;location of log4j.properties&gt;
  -classpath=&lt;java class paths&gt;
</pre>

    <h3>
        Program execution involves:
    </h3>

<pre>
  java org.xbrlapi.data.bdbxml.examples.load.LoadAllSECFilings &lt;OPTIONS&gt; 
</pre>

    <p>
        Where the mandatory options are:
    </p>

    <ul>
        <li>-database [the directory containing the Oracle Berkeley XML database]</li>
        <li>-container [the name of the database container in the Oracle Berkeley XML database]</li>
        <li>-cache [the directory containing the document cache]</li>
        <li>-threads [integer specifying the number of threads to use for loading the data]</li>
    </ul>

    <h2>
        Licensing and legal issues
    </h2>

    <p>
        XBRLAPI examples are released under the lesser GPL license.
    </p>

    <p>
        Thanks for using XBRLAPI.
    </p>

    <p>
        <a href="http://sourceforge.net/projects/xbrlapi"><img
                src="http://sflogo.sourceforge.net/sflogo.php?group_id=135539&type=11" width="120" height="30"
                border="0"
                alt="Get Java XBRL API implementation at SourceForge.net. Fast, secure and Free Open Source software downloads"/></a>
    </p>

</div>

</body>
</html>
